<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Building the test suite</title>
<link rel="stylesheet" href="../../../../../doc/src/boostbook.css" type="text/css">
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="../index.html" title="CallableTraits">
<link rel="up" href="../index.html" title="CallableTraits">
<link rel="prev" href="faq.html" title="FAQ">
<link rel="next" href="contact.html" title="Contact">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table cellpadding="2" width="100%"><tr>
<td valign="top"><img alt="Boost C++ Libraries" width="277" height="86" src="../../../../../boost.png"></td>
<td align="center"><a href="../../../../../index.html">Home</a></td>
<td align="center"><a href="../../../../../libs/libraries.htm">Libraries</a></td>
<td align="center"><a href="http://www.boost.org/users/people.html">People</a></td>
<td align="center"><a href="http://www.boost.org/users/faq.html">FAQ</a></td>
<td align="center"><a href="../../../../../more/index.htm">More</a></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="faq.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="contact.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
<div class="section">
<div class="titlepage"><div><div><h2 class="title" style="clear: both">
<a name="callable_traits.building"></a><a class="link" href="building.html" title="Building the test suite">Building the test suite</a>
</h2></div></div></div>
<p>
      This section contains the instructions for building and running the test cases
      and documentatation examples that are packaged with <code class="literal">Boost.CallableTraits</code>.
    </p>
<div class="note"><table border="0" summary="Note">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../doc/src/images/note.png"></td>
<th align="left">Note</th>
</tr>
<tr><td align="left" valign="top"><p>
        Some test cases that use language features that do not work on some supported
        compilers. These conflicts are "resolved" by replacing <code class="computeroutput"><span class="keyword">int</span> <span class="identifier">main</span><span class="special">(){}</span></code> with the actual test via conditional
        compilation.
      </p></td></tr>
</table></div>
<h4>
<a name="callable_traits.building.h0"></a>
      <span class="phrase"><a name="callable_traits.building.dependencies"></a></span><a class="link" href="building.html#callable_traits.building.dependencies">Dependencies</a>
    </h4>
<p>
      Even though the <code class="literal">Boost.CallableTraits</code> headers do not rely
      on external dependencies, you'll need to install <a href="https://cmake.org/" target="_top">CMake</a>
      version 3.8 or higher to run the full test suite. The build instructions assume
      that both CMake and Git are available from your environment PATH. Boost.Build
      is also supported.
    </p>
<h4>
<a name="callable_traits.building.h1"></a>
      <span class="phrase"><a name="callable_traits.building.linux_osx_clone_and_run_test_sui"></a></span><a class="link" href="building.html#callable_traits.building.linux_osx_clone_and_run_test_sui">Linux/OSX
      - clone and run test suite</a>
    </h4>
<p>
      Open a shell and enter the following commands:
    </p>
<pre class="programlisting"><span class="identifier">git</span> <span class="identifier">clone</span> <span class="identifier">http</span><span class="special">://</span><span class="identifier">github</span><span class="special">.</span><span class="identifier">com</span><span class="special">/</span><span class="identifier">boostorg</span><span class="special">/</span><span class="identifier">callable_traits</span>
<span class="identifier">cd</span> <span class="identifier">callable_traits</span>
<span class="identifier">mkdir</span> <span class="identifier">build</span>
<span class="identifier">cd</span> <span class="identifier">build</span>
<span class="identifier">cmake</span> <span class="special">..</span> <span class="special">-</span><span class="identifier">DCMAKE_CXX_COMPILER</span><span class="special">=/</span><span class="identifier">path</span><span class="special">/</span><span class="identifier">to</span><span class="special">/</span><span class="identifier">compiler</span>
<span class="identifier">make</span> <span class="identifier">check</span>
</pre>
<h4>
<a name="callable_traits.building.h2"></a>
      <span class="phrase"><a name="callable_traits.building.windows_clone_and_run_test_suite"></a></span><a class="link" href="building.html#callable_traits.building.windows_clone_and_run_test_suite">Windows
      - clone and run test suite</a>
    </h4>
<div class="note"><table border="0" summary="Note">
<tr>
<td rowspan="2" align="center" valign="top" width="25"><img alt="[Note]" src="../../../../../doc/src/images/note.png"></td>
<th align="left">Note</th>
</tr>
<tr><td align="left" valign="top"><p>
        Cygwin and MSYS users should refer to the Linux section (you know who you
        are).
      </p></td></tr>
</table></div>
<p>
      Fire up <code class="computeroutput"><span class="identifier">cmd</span><span class="special">.</span><span class="identifier">exe</span></code> and enter the following commands:
    </p>
<pre class="programlisting"><span class="identifier">git</span> <span class="identifier">clone</span> <span class="identifier">http</span><span class="special">://</span><span class="identifier">github</span><span class="special">.</span><span class="identifier">com</span><span class="special">/</span><span class="identifier">boostorg</span><span class="special">/</span><span class="identifier">callable_traits</span>
<span class="identifier">cd</span> <span class="identifier">callable_traits</span>
<span class="identifier">mkdir</span> <span class="identifier">build</span>
<span class="identifier">cd</span> <span class="identifier">build</span>
<span class="identifier">cmake</span> <span class="special">..</span>
<span class="identifier">path</span><span class="special">\</span><span class="identifier">to</span><span class="special">\</span><span class="identifier">msbuild</span><span class="special">.</span><span class="identifier">exe</span> <span class="identifier">check</span><span class="special">.</span><span class="identifier">vcxproj</span> <span class="special">/</span><span class="identifier">t</span><span class="special">:</span><span class="identifier">build</span> <span class="special">/</span><span class="identifier">p</span><span class="special">:</span><span class="identifier">Configuration</span><span class="special">=</span><span class="identifier">Debug</span> <span class="special">/</span><span class="identifier">p</span><span class="special">:</span><span class="identifier">Platform</span><span class="special">=</span><span class="identifier">Win32</span> <span class="special">/</span><span class="identifier">v</span><span class="special">:</span><span class="identifier">n</span> <span class="special">/</span><span class="identifier">nologo</span>
</pre>
<p>
      To build with Clang/C2 instead of MSVC, append <code class="computeroutput"><span class="special">-</span><span class="identifier">TLLVM</span><span class="special">-</span><span class="identifier">vs2014</span></code>
      (or similar supported flag) to the CMake arguments. This will only work if
      you have Clang/C2 installed.
    </p>
</div>
<table xmlns:rev="http://www.cs.rpi.edu/~gregod/boost/tools/doc/revision" width="100%"><tr>
<td align="left"></td>
<td align="right"><div class="copyright-footer">Copyright © 2016-2021 Barrett Adair<p>
        Distributed under the Boost Software License, Version 1.0. (See accompanying
        file LICENSE.md or copy at <a href="http://www.boost.org/LICENSE_1_0.txt" target="_top">http://www.boost.org/LICENSE_1_0.txt</a>)
      </p>
</div></td>
</tr></table>
<hr>
<div class="spirit-nav">
<a accesskey="p" href="faq.html"><img src="../../../../../doc/src/images/prev.png" alt="Prev"></a><a accesskey="u" href="../index.html"><img src="../../../../../doc/src/images/up.png" alt="Up"></a><a accesskey="h" href="../index.html"><img src="../../../../../doc/src/images/home.png" alt="Home"></a><a accesskey="n" href="contact.html"><img src="../../../../../doc/src/images/next.png" alt="Next"></a>
</div>
</body>
</html>
